Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

got it!

Mucking around with how jQuery expects JSON to be formatted and doing my Google research I finally found the answer. for jQuery autocomplete you need to override the default data parser to tease out the key value pairs from the verbose Domino JSON object using the undocumented "parse" parameter of autocomplete. Use parse to specify a function that reads the JSON data and extracts an array of key value pairs. Then use the (documented) format parameter of jQuery to return the individual item. I now have a reasonably succint jQuery autocompleter.

hat tip vezult on stackoverflow: http://stackoverflow.com/questions/737453/what-does-formatresult-and-formatitem-options-do-in-jquery-autocomplete/737503

UPDATE: code here: http://www.critical-masses.com/jakeofalltrades/quick-n-easy-ajax-domino-name-lookup


Feedback response number WEBB7RLTJF created by ~Hal Churepuloopsi on 04/30/2009

jQuery AJAX autocomplete with view ... (~Hal Churepuloo... 30.Apr.09)
. . Not sure about JQuery... (~Sven Zeknukony... 30.Apr.09)
. . . . YUI vs. jQuery (~Hal Churepuloo... 30.Apr.09)
. . . . . . jQuery vs. YUI (~Sven Zeknukony... 1.May.09)
. . . . . . . . personal pref (~Hal Churepuloo... 1.May.09)
. . got it! (~Hal Churepuloo... 30.Apr.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS